python object to json file

82

python json dump to file -

import json
with open('data.json', 'w') as f:
    json.dump(data, f)

Comments

Submit
0 Comments